<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // reverse() 数组的翻转 / 反转
    // 返回值：翻转后的原数组
    // 是否影响原数组：影响

    var arr = ["a", "b" , "c" , "d" , "e"]
    var result = arr.reverse();
    console.log(result);
    console.log(arr);


    // slice(startIndex,endIndex)   数组的裁切
    // startIndex 起始下标(默认值：0)
    // endIndex 终止下标(默认值：数组的长度)

    var arr = [1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9]


</script>
</html>